const fs = require('fs');

const {resolve} = require('path')

let url = resolve(__dirname,'../视频2');

// 判断文件目录是否存在
let bool = fs.existsSync(url);

console.log(bool);